package com.fcscs.cservice.ws.client.bookingservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.bookingservice.GetBookingHistoryRequest;
import com.fcscs.cservice.ws.schema.bookingservice.GetBookingHistoryResponse;

public class GetBookingHistroyClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetBookingHistroyClient.class);
	
	public GetBookingHistoryResponse getBookingHistory(GetBookingHistoryRequest req) {
		GetBookingHistoryResponse resp = (GetBookingHistoryResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getBookingHistory().getBookingViewList().size());
		return resp;
	}
	
}
